generateAppleClientSecret

suspend fun generateAppleClientSecret(clientId: String, teamId: String, keyId: String, privateKey: String, duration: Long): String

Generates a new Apple OAuth2 client secret key.

Parameters

clientId

the apple service id.

teamId

10-character string associated with your developer account (usually could be found next to your name in the Apple Developer site)

keyId

10-character key identifier generated for the "Sign in with Apple" private key associated with your developer account

privateKey

the private key associated to your app

duration

how long the generated JWT token should be considered valid. The specified value must be in seconds and max 15777000 (~6months).